package routers

import (
	"fmt"
	"togethorGo/handler"
)

var (
	// UserRouters : 用户路由
	UserRouters []Router
)

func init() {
	fmt.Println("userInfo")
	UserRouters = append(UserRouters, NewRouter("v1", "/user/info", handler.HandleUserInfo, true))
	UserRouters = append(UserRouters, NewRouter("v1", "/user/register", handler.HandleUserRegister, false))
	UserRouters = append(UserRouters, NewRouter("v1", "/user/login", handler.HandleUserLogin, false))
	UserRouters = append(UserRouters, NewRouter("v1", "/user/logout", handler.HandleUserLogout, true))
	UserRouters = append(UserRouters, NewRouter("v1", "/user/unregister", handler.HandleUserUnregister, true))
}
